home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Computer Select (Limited Edition)
/
Computer Select.iso
/
pcc
/
v04n12
/
windoc.exe
/
DCGLOBAL.BAS
< prev
next >
Wrap
BASIC Source File
|
1991-10-31
|
4KB
|
127 lines
'========='
' '
' General '
' '
'========='
DefInt A-Z
' Booleans
Global Const TRUE = -1
Global Const FALSE = 0
' Button and Shift (KeyDown, KeyUp, MouseDown, MouseMove, MouseUp)
Global Const SHIFT_MASK = 1
Global Const CTRL_MASK = 2
Global Const ALT_MASK = 4
'=================='
' '
' Event parameters '
' '
'=================='
' State (DragOver)
Global Const ENTER = 0
Global Const LEAVE = 1
Global Const OVER = 2
'====================='
' '
' Function parameters '
' '
'====================='
' MsgBox parameters
Global Const MB_OK = 0 ' OK button only
Global Const MB_OKCANCEL = 1 ' OK and Cancel buttons
Global Const MB_ABORTRETRYIGNORE = 2 ' Abort, Retry, and Ignore buttons
Global Const MB_YESNOCANCEL = 3 ' Yes, No, and Cancel buttons
Global Const MB_YESNO = 4 ' Yes and No buttons
Global Const MB_RETRYCANCEL = 5 ' Retry and Cancel buttons
Global Const MB_ICONSTOP = 16 ' Critical message
Global Const MB_ICONQUESTION = 32 ' Warning query
Global Const MB_ICONEXCLAMATION = 48 ' Warning message
Global Const MB_ICONINFORMATION = 64 ' Information message
' MsgBox return values
Global Const IDOK = 1 ' OK button pressed
Global Const IDCANCEL = 2 ' Cancel button pressed
Global Const IDABORT = 3 ' Abort button pressed
Global Const IDRETRY = 4 ' Retry button pressed
Global Const IDIGNORE = 5 ' Ignore button pressed
Global Const IDYES = 6 ' Yes button pressed
Global Const IDNO = 7 ' No button pressed
'==================='
' '
' Method parameters '
' '
'==================='
' Drag (controls)
Global Const CANCEL = 0
Global Const BEGIN_DRAG = 1
Global Const END_DRAG = 2
'================='
' '
' Property values '
' '
'================='
' LinkMode (controls)
Global Const NONE = 0
Global Const HOT = 1
Global Const COLD = 2
Global Const SERVER = 1
'----------------------------------------
'API DECLARATIONS
Declare Function FindWindow Lib "user" (ByVal CName As Any, ByVal Caption As Any)
Declare Function IsIconic Lib "user" (ByVal hWnd As Any)
Declare Function PostMessage Lib "User" (ByVal hWnd As Integer, ByVal wMsg As Integer, ByVal wParam As Integer, lParam As Any) As Integer
Declare Function GetClassWord Lib "User" (ByVal hWnd As Integer, ByVal nIndex As Integer) As Integer
Declare Function GetModuleFilename Lib "Kernel" (ByVal hModule As Integer, ByVal lpFilename As String, ByVal nSize As Integer) As Integer
Global Const WM_GETTEXT = &HD
Global Const WM_SYSCOMMAND = &H112
Global Const SC_RESTORE = &HF120
Global Const SC_CLOSE = &HF060
'----------------------------------------
'File System Declarations
Global Const SAVEFILE = 1, LOADFILE = 2
Global Const REPLACEFILE = 1, READFILE = 2, ADDFILE = 3
Global Const RANDOMFILE = 4, BINARYFILE = 5
Global Const ERR_DEVICEUNAVAILABLE = 68
Global Const ERR_DISKNOTREADY = 71, ERR_FILEALREADYEXISTS = 58
Global Const ERR_TOOMANYfILES = 67, ERR_RENAMEACROSSDISKS = 74
Global Const ERR_PATH_FILEACCESSERROR = 75, ERR_DEVICEIO = 57
Global Const ERR_DISKFULL = 61, ERR_BADFILENAME = 64
Global Const ERR_BADFILENAMEORNUMBER = 52, ERR_BADFILEMODE = 54
Global Const ERR_FILEALREADYOPEN = 55, ERR_INPUTPASTENDOFFILE = 62
Global Const ERR_FILENOTFOUND = 53
Global Const ERR_PATHNOTFOUND = 76
'----------------------------------------
'Definition for DOCMAN.DAT record type
Type RecordType
recordnum As Long
title As String * 120
Description As String * 300
file As String * 60
owner As String * 8
date As String * 10
key1 As String * 31
key2 As String * 31
key3 As String * 31
key4 As String * 31
End Type
'GLOBAL VARIABLES
Global EditFile As String
Global EditPath As String
Global IsActionsHidden As Integer
Global OpenFileNum As Integer
Global CleanUpFileNum As Integer
Global FileNum As Integer
Global RecordVar As RecordType
Global RecordNumber As Long
Global Position As Long
Global LastRecord As Long
Global NewRecordFlag As Integer
Global WasRecordChanged As Integer
Global Keyword As String
Global NewActions As Integer
Global FindNext As Integer
Global LastWindowHandle As Integer
Global ExePath As String